<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <f:loadBundle basename="messages" var="msgs"/>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <meta name="description" content="VCE Elections Version 1.0" />
        <meta name="keywords" content="VCE, Elections" />
        <meta name="author" content="GG developments" />
        <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss/" />
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <ui:insert name="customs"/>
        <title>VCE Elecciones</title>
    </head>
    <body>
        <ui:composition template="/template.xhtml">
            <ui:define name="userId"></ui:define>
            <ui:define name="menu-content"></ui:define>
            <ui:define name="submenu-content"></ui:define>
            <ui:define name="title">
                Bienvenidos!!
            </ui:define>
            <ui:define name="main-content">
                <div id="wrap">
                    <div id="login">
                        <div id="logindata">
                            <f:view><h:messages id="errorMessages" layout ="table" styleClass="messages"/>
                            </f:view>
                            <h:form>
                                <div id="inputbox">
                                    <table>
                                        <tr>
                                            <td>
                                                <h5>Usuario: </h5>
                                            </td>
                                            <td>
                                                <h:inputText value="#{loginBean.username}"  tabindex="1" required="true" size="13"/>
                                            </td>
                                            <td rowspan="2">
                                                <h:commandButton action="#{loginBean.login}" tabindex="3" value="Submit" image="images/Key.png"/>
                                            </td>
                                        </tr>
                                        <tr>  
                                            <td> <h5>Password: </h5></td>
                                            <td><h:inputSecret value="#{loginBean.password}" tabindex="2" required="true" size="13"/></td>
                                        </tr>                                
                                    </table>
                                </div> 
                            </h:form>
                        </div>  
                    </div>
                    <div id="enteryour">
                        <p>Por favor ingrese sus credenciales</p>
                    </div>
                </div>
            </ui:define>
            <ui:define name="news-content">
                <span class="smalltitle">Vote casilla 1!</span>
            </ui:define>
        </ui:composition>
    </body>    
</html>